package com.drought.rained.adapter;

import android.annotation.SuppressLint;
import android.content.Context;
import android.support.annotation.NonNull;
import android.view.ViewGroup;

import com.drought.rained.R;
import com.drought.rained.bean.HelpCenterDataLJ;

public class HelpCenterAdapterLJ extends BaseRecyclerAdapterLJ<HelpCenterDataLJ, HelpViewHolderLJ> {

    public HelpCenterAdapterLJ(Context context) {
        super(context);
    }

    @NonNull
    @Override
    public HelpViewHolderLJ onCreateViewHolder(@NonNull ViewGroup viewGroup, int viewType) {
        return new HelpViewHolderLJ(inflater.inflate(R.layout.item_help_detail, viewGroup, false));
    }

    @SuppressLint("SetTextI18n")
    @Override
    public void onBindViewHolder(@NonNull HelpViewHolderLJ holder, int position) {
        holder.tvQuestion.setText("Q    " + mDatas.get(position).getTitle());
        holder.tvAnswer.setText("A    " + mDatas.get(position).getMessage());
    }
}
